
import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path:'/home',
    name:'home',
    component: () => import('../views/home.vue')
  },
  {
    path:'/item',
    name:'item',
    component: () => import('../views/item.vue')
  },
  {
    path:'/score',
    name:'score',
    component: () => import('../views/score.vue')
  }
]


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
})
export default router